package zhh.tangbao.wechat.vo;

import lombok.Data;
import zhh.tangbao.wechat.entity.WeChatUser;

import java.util.Date;

/**
 * 2023/2/27
 * @author 粥灰灰
 * @version 1.0
 * 微信小程序用户信息缓存
 */

@Data
public class WeChatUserCacheVo {

    private String id;

    private String token;

    private Date lastLogin;

    private Integer isReplenishment;

    public WeChatUserCacheVo() {
    }

    public WeChatUserCacheVo(WeChatUser user) {
        this.id = user.getId();
        this.token = user.getToken();
        this.lastLogin = user.getLastLogin();
        this.isReplenishment = user.getIsReplenishment();
    }
}
